file(GLOB_RECURSE DWM_SRCS "./dwm_driver/dwm_api/dwm_api.c"
							"./dwm_driver/lmh/*.c"
							"./platform/esp32/hal/*.c"
							"./examples/ex2_ExternalApiTest_1Host/ext_api_fulltest.c"
							"./examples/ex3_les_1Host/test_les.c"
							"./examples/test_util/*.c")

idf_component_register(	SRCS ${DWM_SRCS}
                    	INCLUDE_DIRS "include"
                    		"dwm_driver/dwm_api"
							"./dwm_driver/lmh"
							"./platform/esp32/hal"
							"./examples/test_util")
							
####################################################
#  TARGET
#  0: Raspberry-Pi
#  1: else
option(TARGET "dwm1001 api target" 1)

####################################################
#  INTERFACE_NUMBER
#  0: USE_UART  
#  1: USE_SPI    
#  2: USE_SPI_DRDY
option(INTERFACE_NUMBER "dwm1001 api interface" 2)

####################################################
#  HAL_LOG_ENABLED
#  for   HAL_Log         
#  0:    not enabled      
#  1:    enabled
option(HAL_LOG_ENABLED "dwm1001 log enable" 1)